$package('jeecg.simpleflowInfo');
jeecg.simpleflowInfo = function(){
	var _box = null;
	var _this = {
		config:{
			event:{
				add:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.add();
				},
				edit:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.edit();
				}
			},
  			dataGrid:{
  				title:'流程信息表',
	   			url:'dataList.do',
	   			columns:[[
					{field:'id',checkbox:true},
					{field:'flowname',title:'',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.flowname;
							}
						},
					{field:'flowcode',title:'编码',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.flowcode;
							}
						},
					{field:'flowdes',title:'流程描述',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.flowdes;
							}
						},
					{field:'flowvalid',title:'是否有效 1：启用 0：停用',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.flowvalid;
							}
						},
					{field:'busid',title:'业务业务主键，如网上办事类流程',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.busid;
							}
						},
					{field:'bustable',title:'业务表',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bustable;
							}
						},
					{field:'createuserid',title:'创建人',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.createuserid;
							}
						},
					{field:'createtime',title:'创建时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.createtime;
							}
						},
					{field:'updateuserid',title:'更新人',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.updateuserid;
							}
						},
					{field:'updatetime',title:'更新时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.updatetime;
							}
						},
					{field:'isdeleted',title:'删除 1：删除',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.isdeleted;
							}
						},
					]]
			}
		},
		init:function(){
			_box = new YDataGrid(_this.config); 
			_box.init();
		}
	}
	return _this;
}();

$(function(){
	jeecg.simpleflowInfo.init();
});